<?php
error_reporting(E_ALL ^ E_NOTICE);
$CONFIG['mysql']['host']  				= "localhost";
$CONFIG['mysql']['user']  				= "root";
$CONFIG['mysql']['pass']  				= "";
$CONFIG['mysql']['dbase'] 				= "risk";

$CONFIG['risk']['yourturnmsg'] 			= "Its your turn... ";
$CONFIG['risk']['style'] 				= "risk_game1.css";
$CONFIG['risk']['servername']			= "";
$CONFIG['risk']['gamename']				= "";
$CONFIG['risk']['version']				= "0.2b";
$CONFIG['risk']['copyright']			= "&copy;2003 TheWulf &copy;2006-2007 TimmMaass & JanFischer";


$CONFIG['risk']['master']['enable']		= false;
$CONFIG['risk']['master']['url']		= "http://www.timm-maass.de/risk_master/";
$CONFIG['risk']['master']['wsdl']		= "http://www.timm-maass.de/risk_master/wsdl/RiskServer.php?wsdl";
$CONFIG['risk']['master']['gameid']		= "";
$CONFIG['risk']['master']['gamekey']	= "";

/*
	if you enable the risk master....
		- you can see other games in the gamelist of your server and you can join without another login or registration  
		- the login script uses the data of the master server for login  to enable the login on other connected servers, too
		  each login overwrites the users data  on your risk_players table
		- the logout script proceeds  logout on your master via webservice
		- each registration will be sended to your master via webservice  to enable the login on other connected servers, too
		- each password change will be sended to your master via webservice
		- each CurrentGame and NumOnline change of the risk_config table  will be sended to your master via webservice
	
	if you set the $CONFIG['risk']['master']['enable']  value to false....
		- you have a standalone risk game with no connection to any master
*/


include("class_mysql.php");
require("calcs.inc.php");
require("class_risk.php");
require("class_riskbot.php");

$risk 		= new class_risk;
$risk->style_path = "faces";
$risk->style_file = $CONFIG['risk']['style'];

$armytrades[0] = 4;
$armytrades[1] = 6;
$armytrades[2] = 8;
$armytrades[3] = 10;
$armytrades[4] = 12;
$armytrades[5] = 15;
$armytrades[6] = 20;
$armytrades[7] = 25;
$armytrades[8] = 30;
$armytrades[9] = 35;
$armytrades[10] = 40;
$armytrades[11] = 45;
$armytrades[12] = 50;
$armytrades[13] = 55;
$armytrades[14] = 60;
$armytrades[15] = 65;
$armytrades[16] = 70;
$armytrades[17] = 75;
$armytrades[18] = 80;
$armytrades[19] = 85;

?>